package com.zdb.order.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zdb.order.entity.Provinces;
import com.zdb.order.mapper.ProvincesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProvincesService {
    @Autowired
    private ProvincesMapper provincesMapper;

    //根据uid，查询省Provinces对象
    public Provinces queryProvinces(int pid){
        Provinces resultProvinces = provincesMapper.selectOne(new QueryWrapper<Provinces>().eq("id", pid));
        return resultProvinces;
    }
}
